package com.jzo2o.market.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.market.model.domain.Coupon;
import com.jzo2o.market.model.dto.request.CouponConsumerReqDTO;
import com.jzo2o.market.model.dto.request.CouponOperationPageQueryReqDTO;
import com.jzo2o.market.model.dto.response.CouponInfoResDTO;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author itcast
 * @since 2023-09-16
 */
public interface ICouponService extends IService<Coupon> {


    /**
     * 查询优惠券领取记录列表
     * @param dto
     * @return
     */
    PageResult<CouponInfoResDTO> pageList(CouponOperationPageQueryReqDTO dto);

    /**
     * 查询自己领取的优惠券
     * @param dto
     * @return
     */
    List<CouponInfoResDTO> pageCouponList(CouponConsumerReqDTO dto);
}
